package com.aauedu.springboot.mybatis.mapper;

import com.aauedu.springboot.mybatis.bean.Monster;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 在Mapper接口使用@Mapper，就会扫描，并将Mapper接口对象注入
 */
@Mapper
public interface MonsterMapper {

    public Monster getMonsterById(Integer id);

    public List<Monster> getAllMonsters();
}
